import request from '@/utils/request'

// 订单列表
export function getlistOrder(params) {
  return request({
    url: 'order/customsClearance/list',
    params,
  })
}
// 下单
export function customsClearanceAddOrder(data) {
  return request({
    url: 'order/customsClearance/customsClearanceAddOrder',
    method: 'post',
    data,
  })
}
// 国内查验

export function domesticInspection(data) {
  return request({
    url: 'order/customsClearance/domesticInspection',
    method: 'post',
    data,
  })
}
// 国内已放行
export function domesticDomestically(data) {
  return request({
    url: 'order/customsClearance/domesticDomestically',
    method: 'post',
    data,
  })
}

// 国外查验
export function foreignInspection(data) {
  return request({
    url: 'order/customsClearance/foreignInspection',
    method: 'post',
    data,
  })
}
//  国内报关
export function domesticDeclaration(data) {
  return request({
    url: 'order/customsClearance/domesticDeclaration',
    method: 'post',
    data,
  })
}
// 签出

export function ladingOut(data) {
  return request({
    url: 'order/customsClearance/ladingOut',
    method: 'post',
    data,
  })
}
// 国外清关
export function customsClearance(data) {
  return request({
    url: 'order/customsClearance/customsClearance',
    method: 'post',
    data,
  })
}
// 国外清关已放行
export function editOrderStatus(data) {
  return request({
    url: 'order/customsClearance/editOrderStatus',
    method: 'post',
    data,
  })
}
// 删除
export function remove(id) {
  return request({
    url: `order/customsClearance/remove/${ id }`,
    method: 'delete',
    
  })
}
// 清关订单单个查询
export function getCustomsClearanceByIdOrLadingNO(data) {
  return request({
    url: 'order/customsClearance/getCustomsClearanceByIdOrLadingNO',
    method: 'post',
    data,
  })
}
// 获取空运装柜详细信息
export function getIdList(id) {
  return request({
    url: `order/customsClearance/${ id }`,
   
  })
}
export function putIdList(data) {
  return request({
    url: 'order/customsClearance',
    method: 'put',
    data,
  })
}
// 文件查询

export function selectFileList(ladingNo) {
  return request({
    url: `/order/customsClearance/getFileList/${ ladingNo }`,
   
  })
}
// 下载

export function aircabinetFile(data) {
  return request({
    url: '/order/customsClearance/uploadFile',
    method: 'post',
    data,
  })
}
// 删除文件

export function deleteFile(id) {
  return request({
    url: `/order/customsClearance/deleteFile/${ id }`,
    method: 'delete',
    
  })
}
// 配仓

export function cabinAllocation(data) {
  return request({
    url: 'order/customsClearance/cabinAllocation',
    method: 'put',
    data,
  })
}